package com.shengsheng.expschedule.service.ucenter.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 会员权限表
 * </p>
 *
 * @author yuan
 * @since 2021-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ucenter_right")
@ApiModel(value="Right对象", description="教师权限表")
public class Right implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "权限 id")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "权限名称")
    private String rightName;

    @ApiModelProperty(value = "父级权限 id")
    private String rightParentId;

    @ApiModelProperty(value = "权限路径")
    private String rightPath;

    @ApiModelProperty(value = "权限图标")
    private String rightIcon;

    @ApiModelProperty(value = "排序字段，数字越大越靠后")
    private Integer sort;

    @ApiModelProperty(value = "是否是基本权限(1 基本权限，0 普通权限)")
    @TableField("right_is_show")
    private Boolean show;

    @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
